/***************************************************************************
** @file:		iic.h
** @brief:  	
** @author:	
** @date:		2018-7-27
** @version: 	
***************************************************************************/
#ifndef __IIC_H__
#define __IIC_H__
#include "types.h"

extern void iic_init(void);

extern void iic_start(void);

extern void iic_stop(void);

extern uint8_t iic_get_ack(void);

extern void iic_put_ack(uint8_t ack);

extern void iic_write_byte(uint8_t dat);

extern void iic_read_byte(uint8_t* dat);

extern uint8_t iic_puts(uint8_t slave_addr,uint8_t sub_addr,uint8_t* dat,uint8_t len);

extern uint8_t iic_gets(uint8_t slave_addr,uint8_t sub_addr,uint8_t* dat,uint8_t len);


#endif  /*  __IIC_H__  */

